package com.qf.day09;

public class Hero {
    //血量hp
    private int hp;
    //攻击力
    private int atk;

    public Hero() {
    }

    public Hero(int hp, int atk) {
        this.hp = hp;
        this.atk = atk;
    }

    public int getHp() {
        return hp;
    }

    public void setHp(int hp) {
        this.hp = hp;
    }

    public int getAtk() {
        return atk;
    }

    public void setAtk(int atk) {
        this.atk = atk;
    }

    @Override
    public String toString() {
        return "Hero{" +
                "hp=" + hp +
                ", atk=" + atk +
                '}';
    }
}
